initPageFun({className:'接口的学习'});

interface Interface1 {
    name:string;//名称
    age:number;//年龄
}
class Interface_1  {
    constructor() {
        this.interface_fun({name:'Tom',age:18});
    }
    interface_fun = (obj:Interface1) =>{
        const text = `${obj.name}的年龄是${obj.age}`;
        const span = {
            text,
            className: "alignCenter",
            style:{
                display:'block'
            }
        };
        writeSpan(span)

    }
}
new Interface_1();


